package org.hxyjs.service;


import org.hxyjs.dto.DTO;
import org.hxyjs.entity.School;
import org.hxyjs.entity.School;
import org.hxyjs.page.PageInfo;

public interface SchoolService {
    /**
     * 查询全部学校
     * @return
     */
    public DTO<School> getAllSchools() throws Exception;
    /**
     * 删除学校
     * @return
     */
    public DTO<School> deleteSchoolBySno(String sno) throws Exception;
    /**
     * 修改学校
     * @return
     */
    public DTO<School> updateSchoolBySno(School school) throws Exception;
    /**
     * 增加学校
     * @return
     */
    public DTO<School> addSchool(School school) throws Exception;
    /**
     * 分页查询学校
     * @return
     */
    public DTO<School> getSchoolByPage(PageInfo pageInfo) throws Exception;
}
